package com.neuedu.funlifebbs.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 帖子类
 * 
 * @author myh
 * @version 2019年8月17日上午10:27:11
 *
 */
public class Topics {
	private Integer id;
	/**
	 * 帖子标题
	 */
	private String title;
	/**
	 * 帖子内容
	 */
	private String content;
	/**
	 * 评论数
	 */
	private Integer commentcount = 0;
	/**
	 * 帖子状态 0正常，1封禁
	 */
	private Integer status = 0;
	/**
	 * 发帖时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date topictime;
	/**
	 * 是否精品帖子 0不是，1是
	 */
	private Integer nicetopic = 0;
	/**
	 * 发帖人---一对一----一个帖子由一个用户发布
	 */
	private Users user;
	/**
	 * 帖子标签
	 */
	private Labels label;
	/**
	 * 版块
	 */
	private Categorys categorys;
	/**
	 * 帖子评论列表--一对多--->一个帖子有多条评论
	 */
	private List<Comments> topicCommentList = new ArrayList<>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCommentcount() {
		return commentcount;
	}

	public void setCommentcount(Integer commentcount) {
		this.commentcount = commentcount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getTopictime() {
		return topictime;
	}

	public void setTopictime(Date topictime) {
		this.topictime = topictime;
	}

	public Integer getNicetopic() {
		return nicetopic;
	}

	public void setNicetopic(Integer nicetopic) {
		this.nicetopic = nicetopic;
	}

	public Users getUser() {
		return user;
	}

	public void setUser(Users user) {
		this.user = user;
	}

	public Labels getLabel() {
		return label;
	}

	public void setLabel(Labels label) {
		this.label = label;
	}

	public List<Comments> getTopicCommentList() {
		return topicCommentList;
	}

	public void setTopicCommentList(List<Comments> topicCommentList) {
		this.topicCommentList = topicCommentList;
	}

	public Categorys getCategorys() {
		return categorys;
	}

	public void setCategorys(Categorys categorys) {
		this.categorys = categorys;
	}

}
